package com.example.myapplication

import android.content.Context
import android.content.ContextWrapper
import android.content.Intent
import android.content.IntentFilter
import android.os.BatteryManager
import android.os.Build.VERSION
import android.os.Build.VERSION_CODES
import android.os.Bundle
import com.idlefish.flutterboost.containers.BoostFlutterActivity
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.plugin.common.MethodChannel
import kotlinx.android.synthetic.main.activity_main.*


class MainActivity : BoostFlutterActivity(){

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        val params: MutableMap<*, *> = mutableMapOf("test1" to "v_test1"
            ,"test2" to "v_test2")

        tv.setOnClickListener{

            PageRouter.openPageByUrl(this,"flutterPage",params)
        }



    }





}